const BaseGenerator = require('../generator-base')

module.exports = class extends BaseGenerator {
  constructor(args, opts) {
    super(args, opts)
  }

  async prompting() {
    this.answers = await this.prompt([{
      type: "input",
      name: "appname",
      message: "Your project name",
      store: true,
      default: this.appname
    }, {
      type: "input",
      name: "packageName",
      store: true,
      message: "Your package name"
    }])
  }

  composing() {
    this.composeWith('yx:init', { arguments: `${this.answers.appname} ${this.answers.packageName}`})
  }

  writing() {
    
  }
}